|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Operator | Description | Example | | Modulus (Mod) | Divides two numbers and returns just the remainder portion | 4 Mod 3 = 1 | | Exponentiation (^) | Raises one number to the power of the second number | 4 ^ 3 = 64 |
|
|
|
|
|
|
Relational or Comparison Operators |
|
|
|
|
|
|
|
|
The relational or comparison operators are used to perform Boolean logic. Youll typically use these operators with an If statement, which youll learn in a later chapter. You can see each of these in the Operators.frm form as well (see Figure 7.6). |
|
|
|
|
|
|
|
|
Figure 7.6
Examples of relational operators. |
|
|
|
|
|
|
|
|
Examples Filename: Operators.frm |
|
|
|
|
|
|
|
|
Table 7.2 is a list of the different relational operators Visual Basic makes available to you. As you can see, you have all the standard operators available in any programming language. |
|
|
|
|
|